var t = require("../../../@babel/runtime/helpers/interopRequireDefault")(require("../../../dist/dialog/dialog")), e = getApp();

Page({
    data: {
        info: {},
        id: ""
    },
    onLoad: function(t) {
        t.id && (this.setData({
            id: t.id
        }), this.getData({
            id: t.id
        }));
    },
    showOneImage: function(t) {
        var e = t.currentTarget.dataset.src;
        wx.previewImage({
            urls: [ e ]
        });
    },
    showAllImage: function(t) {
        var e = t.currentTarget.dataset.src;
        wx.previewImage({
            urls: e
        });
    },
    apply_handle: function(a) {
        var n = this.data.id, r = a.currentTarget.dataset.type, s = "";
        s = "pass" == r ? "是否确认通过该门店申请？" : "是否确认驳回该门店申请？", t.default.confirm({
            message: s
        }).then(function() {
            var t = "";
            t = "pass" == r ? "plugin.store-cashier.frontend.store.parent-apply.accept" : "plugin.store-cashier.frontend.store.parent-apply.reject", 
            e._getNetWork({
                url: e.getNetAddresss(t),
                data: {
                    id: n
                },
                success: function(t) {
                    var a = t.data, n = a.result, r = a.msg;
                    e.tips(r), 1 == n && wx.navigateTo({
                        url: "/packageI/store_audit/list/list"
                    });
                }
            });
        }).catch(function() {});
    },
    getData: function(t) {
        var a = this;
        e._postNetWork({
            url: e.getNetAddresss("plugin.store-cashier.frontend.store.parent-apply.detail"),
            data: t,
            success: function(t) {
                var n = t.data, r = n.result, s = n.msg, i = n.data;
                if (0 == r) return e.tips(s);
                a.setData({
                    info: i
                });
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});